    {include file="../view/head" /}
    <style>
        label i{font-weight: normal;}
        input[type=text] {min-width: 50px;}
    </style>
    </head>
    <body>
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-lg-12">
                            <!-- Start col-lg-12 -->
                            <div class="panel panel-default panel-closed toggle panelRefresh panelClose showControls">
                                <!-- Start .panel -->
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="im-settings"></i>通用配置</h3>
                                </div>
                                <div class="panel-body">
                                    <form class="form-horizontal group-border hover-stripped" method="post" action="#">
                                        {:token()}
                                        <div class="form-group">
                                            <label class="col-md-2 col-sm-12 col-xs-12 control-label">授权ip地址</label>
                                            <div class="col-md-10">
                                                <input type="text" class="form-control" name="allow_ip" value="{$setting.allow_ip}">
                                                <p class="help-block">多个中间用逗号(,)分开</p>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <div class="col-lg-12 col-md-12">
                                            <input type="submit" class="btn btn-primary btn-block" value="提交">
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>


                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script src="/public/theme/win10/assets/plugins/forms/select2/select2.js"></script>
        <script src="/public/theme/win10/assets/plugins/forms/icheck/jquery.icheck.js"></script>
        <script src="/public/theme/win10/assets/plugins/forms/tags/jquery.tagsinput.min.js"></script>
        <script>
            $('.select2').select2({placeholder: '请选择...'});
            $('input').iCheck();
            $('#k_times').tagsInput({
                // 'autocomplete_url': url_to_autocomplete_api,
                // 'autocomplete': { option: value, option: value},
                'height':'auto',
                'width':'auto',
                'interactive':true,
                'defaultText':'添加，格式00:00',
                'onAddTag':function (val){
                    if(!/[0-2][0-9]:[0-5][0-9]/g.test(val)){
                        alert('时间格式不正确，请严格按照00:00书写');
                        $('#k_times').removeTag(val);
                    }
                },
                // 'onRemoveTag':callback_function,
                // 'onChange' : callback_function,
                'delimiter': [','],   // Or a string with a single delimiter. Ex: ';'
                'removeWithBackspace' : true,
                'minChars' : 5,
                'maxChars' : 5, // if not provided there is no limit
                'placeholderColor' : '#666666'
            });
            $('#q_moneys').tagsInput({
                // 'autocomplete_url': url_to_autocomplete_api,
                // 'autocomplete': { option: value, option: value},
                'height':'auto',
                'width':'auto',
                'interactive':true,
                'defaultText':'添加整数',
                'onAddTag':function (val){
                    if(parseInt(val, 10)!=val){
                        alert('格式不正确，请添加整数');
                        $('#q_moneys').removeTag(val);
                    }
                },
                // 'onRemoveTag':callback_function,
                // 'onChange' : callback_function,
                'delimiter': [','],   // Or a string with a single delimiter. Ex: ';'
                'removeWithBackspace' : true,
                'minChars' : 1,
                'maxChars' : 5, // if not provided there is no limit
                'placeholderColor' : '#666666'
            });

        </script>
    </body>
</html>